<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateTableMember extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('member', function (Blueprint $table) {
            $table->increments('uid');
            $table->integer('rid');
            $table->integer('gid');
            $table->integer('department_id');
            $table->integer('type_id');
            $table->integer('birthday');
            $table->integer('entrytime');
            $table->string('username');
            $table->string('password',60);
            $table->string('wechat');
            $table->string('img');
            $table->string('token');
            $table->string('sex')->nullable();; //显示类型，0男，1女,2未知;
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('member');
    }
}
